<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div class="form-group">
    <label for="datetimepicker">秒杀日期</label>
    <input  type="date" id="datetimepicker" class="laydate-icon form-control layer-date" value="">
</div>
<button class="btn btn-info" id="miaoshaAdd" onclick="doShop()">提交</button>

<script src="../js/mui.min.js"></script>
<script src="../js/jquery-1.10.1.min.js"></script>
<script type="text/javascript">


    function doShop(){
        alert("llllllllllllllllllllllllllllllll");
        alert("日期"+$("#datetimepicker").val());
        $.ajax({
            type: 'POST',
            url: '/testC/testDate.json',
            dataType: 'json',
            data: {
                seckillDate: $("#datetimepicker").val(),
            },
            success: function (data) {

                if (data.code == 0) {
                    alert(data.msg);
                }
                if (data.code == 1) {

                    alert("更新成功");

                }
            }
        })
    }
</script>
</body>
</html>